package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Detail;
import cn.tedu.csmall.product.pojo.vo.SpuDetailStandardVO;
import org.springframework.stereotype.Repository;

@Repository
public interface SpuDetailMapper {
    /**
     * 向detail（spu详情表）插入一条数据
     * @param detail detail对象
     * @return
     */
    int insert(Detail detail);

    /**
     *  根据spuId删除spu详情
     * @param spuId
     * @return
     */
    int deleteBySpuId(Long spuId);

    /**
     * 根据spuId获取详情
     * @param spuId
     * @return
     */
    SpuDetailStandardVO getSpuDetailStandardVO(Long spuId);
}
